﻿<%@ Page Language="C#" MasterPageFile="~/Administrator/Admin.master" AutoEventWireup="true"
    Inherits="Administrator_AdminContacts" Title="Quản trị Liên Hệ" CodeBehind="AdminContacts.aspx.cs" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register Src="Controls/PaggingControl.ascx" TagName="PaggingControl" TagPrefix="EHT" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <h1>
        <asp:Label ID="lbAdminContacts" runat="server" Text="Danh sách Liên Hệ"></asp:Label>
    </h1>
    <asp:Repeater ID="rpLienHes" runat="server" OnItemCommand="rpLienHes_ItemCommand"
        OnItemDataBound="rpLienHes_ItemDataBound">
        <HeaderTemplate>
            <table cellspacing="0" cellpadding="0" class="data-table">
                <thead>
                    <tr>
                        <th class="actions delete">
                            STT
                        </th>
                        <th class="actions edit">
                            Xem
                        </th>
                        <th class="actions delete">
                            Xoá
                        </th>
                        <th>
                            Họ và tên
                        </th>
                        <th>
                            Địa Chỉ
                        </th>
                        <th>
                            Nội Dung
                        </th>
                        <th>
                            Ngày Liên Hệ
                        </th>
                        <th style="width: 80px; white-space: nowrap">
                            Trạng Thái
                        </th>
                    </tr>
                </thead>
                <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                   <td>
                    <%#Eval("IndexId")%>
                </td>
                <td class="actions edit">
                    <a href='AdminContactIU.aspx?LienHeID=<%#Eval("LienHeID")%>'>
                        <img alt="Edit" src="Templates/Images/Edit.png" /></a>
                </td>
                <td class="actions delete">
                    <asp:ImageButton ID="ibDelete" CommandArgument='<%#Eval("LienHeID")%>' CommandName="delete1"
                        ToolTip="Delete" runat="server" ImageUrl="Templates/Images/Delete.png" OnClientClick="return confirm('Bạn có muốn xoá liên hệ này không?');" />
                </td>
                <th>
                    <%#Eval("HoTen")%>
                </th>
                <th>
                    <%#Eval("DiaChi")%>
                </th>
                <th>
                    <%#Eval("NoiDung")%>
                </th>
                <th>
                    <%#Eval("NgayLienHe")%>
                </th>
                <th>
                    <asp:Label ID="lbTrangThaiDoc" runat="server" />
                    <asp:Label ID="lbStatus" runat="server" Text='<%#Eval("TrangThaiDoc")%>' Visible="false" />
                </th>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </tbody> </table>
        </FooterTemplate>
    </asp:Repeater>
    <p>
        <EHT:PaggingControl ID="PaggingControl1" runat="server" PageURL="AdminCustomers.aspx"
            PageSize="10" />
    </p>
</asp:Content>
